import Vue from 'vue'
import App from '@/App.vue'
import router from '@/router'
import store from '@/store'
import Vant from 'vant'
import 'vant/lib/index.css'
import 'lib-flexible/flexible'
import BScroll from 'better-scroll'
import RouteTransition from '@/components/common/vue-route-transition'
import { request, http, authRequest } from '@/request/http'
import { timeFormat, isWX, storage } from '@/utils/utils'


Vue.use(Vant)
Vue.use(RouteTransition)


Vue.config.productionTip = false

//判断浏览器环境
Vue.prototype.$timeFormat = timeFormat
Vue.prototype.$isWX = isWX()
Vue.prototype.$request = request
Vue.prototype.$authRequest = authRequest
Vue.prototype.$http = http
Vue.prototype.$storage = new storage()
Vue.prototype.$BScroll = BScroll

new Vue({
    router,
    store,
    render: h => h(App),
}).$mount('#app')